<div class="pageContent">
	<form action="<?php echo url('users/vips');?>" method="post" onsubmit="return validateCallback(this,navTabAjaxDone)">
					<?php if($acctuser->user_vipstr()):?>
		<input type="hidden" name="flag" value="1" />
					<?php $str='关闭VIP';?>
					<?php else:?>
					<input type="hidden" name="flag" value="0" />
					<?php $str='开通VIP';?>
					
					<?php endif;?>
		<div class="pageFormContent" layoutH="60">
			
			
				<p>
				当前：<?php echo $acctuser->user_attribStr().'/'.$acctuser->user_vipstr();?>
					
				<?php 
				$vip = Acctsetting::find('agent_id = ? ',$acctuser->agent_id)->getOne();
				if (!$vip->id())
				{
					$result['code'] = 0;
					$result['msg'] = '查询成功';
					$result['vipmoney'] = 1;
				}else{
					$result['code'] = 0;
					$result['msg'] = '查询成功';
					$result['vipmoney'] = floatval($vip->vipmoney);
				}
				
				?>
				</p>
					<p>
				功能说明：<?php echo $result['vipmoney'];?>元/月,开通vip后夜间1-8点打电话全免费
				</p>
				
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">
							<?php echo $str;?>
							</button>
						</div>
					</div></li>
				<li><div class="button">
						<div class="buttonContent">
							<button class="close" type="button">取消</button>
						</div>
					</div></li>
			</ul>
		</div>
	</form>
</div> 
